package com.xlchen.mytest;

import com.xlchen.controller.admin.TestController;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAdmin {

    ApplicationContext applicationContext =
            new ClassPathXmlApplicationContext("applicationContext.xml");
    TestController testController =
            (TestController) applicationContext.getBean("testController");

    @Test
    public void test1(){
        testController.testSelect();
    }

    @Test
    public void test2(){
        testController.testAdd();
    }

    @Test
    public void test3(){
        testController.testTypeSelect();
    }

    @Test
    public void test4(){
        testController.testTypeDelete();
    }

    @Test
    public void test5(){
        testController.testSelectGoodsByType();
    }
}
